fix tests for node v0.6