add tests for EncryptMessage/DecryptMessage