Fix tests for nodejs 0.8