Added mocha tests
Adding extra checks for git