tests, update for hg and git