Complete GCD and updated test