Fixed GetEncryptedBody and GetDecryptedBody and added a test for them.