Add tests for parser class