Fix relative gradient convergence test.