add tests for parser