Refactor utility for parsing with single quotes, extend ParserTest.