test for connect