Fixed test to work in node.

Passes npm test now, including test in node.