Tests for parsing errors' markers added.

Minor: refactoring
Test with typing a character added. typedCharacter method in TypingUtils class gets the character specified in comment.