fixed test.js for node

fixed test.js for node