adding mocha tests