Add unit tests for write_message