fix test leaving changed file behind