write_test2 updated.