Node.js test code