added a unittest parser_test.py for parser.py