test to connect to the server