Added test for MessageOutputStream.
MessageOutputStream now fails to send an encrypted message rather than sending raw data.