Moved the tests that tests the pattern matching into PatternMatcherTest (and removed duplication)