Fix tests with node 0.8