Additional tests of wildcards in call to getHeadRev()

Exploring change proposed for JENKINS-20767
Merge remote-tracking branch 'origin/master' into master-work