Fix output of messages for testing.