Added setHash for the parser & updated the tests