some more IGitAPI cleanup and unit test coverage
Don't extends HudsonTestCase (make test quicker)