basic test for connecting to a server