Add test for hashing function