Test text_writer.