added test for connect timeout