Test for network connectivity.