Fixed test if files exist