Add set_timeout and Fix get_logs test