Add test that validateRevision throws on new repo

Studying JENKINS-11547 bug report