Fixed unittest for nodejs version 0.11
Made the nodgine compatible with nodejs 0.11