add test for timeout