[JENKINS-21014] include verify in upstream candidate calculation
-added more compact unit test
[JENKINS-21014] include verify in upstream candidate calculation
-added more compact unit test