I don't think this test is necessary as we are usually specifying self.temp_dir as the directory, so we are essentially covering this case in every other case by giving the temporary directory. I think it is safe to remove this test case from the list, here.