fixed bugs in HashFnTest

we discovered that the class extended RandomHashFn, which naturally made
the dummyHashFnTest fail, we fixed the problem by creating new hash
objects for each test method and extending with the parent of all of
them, HashFn