adding mocha tests for node