Fix the regress unit test (missing consumeMatch function)
Add more test in CharacterReaderTest to test the new feature.