Rewriting hashes unit tests.