fix test if file exists