Added server side tests using mocha