(test) Add mocha tests