Added functional test for CryptoService