add test for new stopping criterion