Added tests for the CryptoFunc.