test for convergence