tests with stop criteria