Fix hash test cases