test(src/parser.js): Added and adjusted the tests from angular
feat(src/parser.js): made the parser pass all the tests