tests for CharMatcher