Fix error test for node v0.10.x