Added tests for Parser.pm.
Added some unit test cases.