Add test case for infinite timeout.