tested creating file in directory