When testing the AD connection details you need to actually do a search to make sure the credential is valid.
If in this search there are not elements, we are returning null.
And in this case we are saying that everything is success.
it might happen that under AD replication farm one of the AD instances is broken not returning any user in the search. In this case, we should expose the issue on the GUI.