Changes made to test cases
Minor changes to parser.js