fixes test_filenames and test_filenames_delete