added Mocha test framework in server code.