PatternExecutor unit test