test connection with server