tests writing