Added WriteEmptyMessageTest.