upgraded mocha test
added check.git method