Fix typo when raising ArgumentError. Extract multiple merge. Write simple tests for PatternExtractor.