add tests for parser class