updated gcd unit test