expect(parser.yy.getHead().id).toEqual(parser.yy.getBranches()['newbranch']);