[vcs] Nullify fields in tearDown of git & hg base test classes