Added jenkins.setQuietPeriod(0); to decrease unit test times
Replaced for with foreach
Added more test of causes
Merge branch 'master' into JENKINS-21010