Adding unit test for nodes/index.js