fix test pollution
improve check output

distinguish between version mismatch and repo dirty state