Fix tests on node 0.8.x.