Apply ratio test for convergence (#443)