Added setup and teardown for git tests.
Refactor Git constructor.
Added Unit tests for Git class.