Added tests to TextMatcher