Add unit test for HashEncryption.