testing file writer