fixes #4: adds hash matcher functions, adds tests for hash and hash matcher functions