test/crypto: change failure condition check