added unit tests for encryption and decryption in cryptoEngine class