test for getting connected