test for connectivity