Complete tests for encryption and decryption