tests for hashing