Fix mock tests for node 0.6, see https://github.com/joyent/node/issues/2867