Added mocha test and dispatch plugins.