Added more hash functions and tests.