tests: Check the result of all gcry_control operations.