modify so that it will stop if no passed test cases in a run

please review