added setTimeout method and unittests. Passes.