Check the connection before proceeding with tests