test gcd