Added mocha tests for mongoose