test hashing algorithm