add test for decryption