Added server-side mocha test functionality