Fixed tests for node 0.10+ #1927