add on testing for writing to files