add mocha test cases