fixed issue 23 bug, added test for commit, added mocha to mock api requests