Created a function for testing hashes