Add coverage for Git module, and do some green-green refactors.