Fix failing tests with new crypto_engine