Fixed test failure with node.js v0.6