added test for gcd previously written for another project