Corrected the unit test covering the hash function.