limit tests until successful