isolated tests for the message writer