finished the file feature tests and clean up for file tests