Add test that validateRevision throws on new repo

Studying JENKINS-11547 bug report
Extend GitAPITest with listeners to monitor error cases

Format GitAPITest with Jalopy for better consistency

Latest changes to GitAPITest
Updated GitAPITest to compile successfully with latest changes