parser: add tests.