testing a connection