Fix failing tests by faking encryptor