finalized ParserTest method