Test hashing.