Add test for timeout (issue #2)