fixed char vs. string comparison bug in parser tests and fixed associated tests, all of which reflected bugs in tests, not in parser