test client and server connect