test connection to R