Fix Tests + Add check that GIF files are gif