Fix a test_gif() bug that doesn't remove gif files