add tests for Parser