Update test.go

add connection timeout testing.