Added a test to check loop fail to GCD of 1