fix: improve Test Connection error messages (#5930)