Unittest created for parser

Unittests created for parser.