Changed setImediate to SetTimeout in tests for nodejs v0.8