Fix for test_crypto