add tests for timeout