test: add mocha tests