Added tests for the encrypter class.