Create test_write