Add tests for Parser class; add methods for Parser class.