testing file write