add tests for parsing errors