Check whether timeout is set or not.
Fix the test.