setTimeout-like test