add mocha test.