test connection to server