Fixed the test by patching os.path.exists