Fix test to work in node.js