Update parser.js

modified test.