Fixed test in crypto kernel