Fix cleanup of gcd test.