Added unit tests for grapheme parsing code in parser.
Added unit tests for character position reader.