test settimeout and clear timeout