updated test to include check for downcasing the hash before testing it