Add tests for parser.