adding rudimentary network tests
and generalizing goroutine timeouts a little bit