add test case for timeout