Fix tests for different GCD algorithm.