Add tests for hashes