add mocha tests