wrote tests for files