Add test for timeout.