[test] Fix tests under node 0.8