Additional tests of wildcards in call to getHeadRev()

Exploring change proposed for JENKINS-20767