Prepare the writer and read the messages to verify