tests fixed for nodejs 0.6