add some mocha tests