Add test for authenticate in new_crypto_engine