* add some graph tests * PatternMatcher class * speedup * const cast test * fix tests * itertools chain