Tests added for the hash function.