Cloud provider unit tests

Wrote unit tests for the `apply_cloud_providers_config` function in `salt.config.py`. Tests are particularly for extending cloud providers.

A couple couple of tweaks were necessary in `config.py` as discovered during testing. 

References #13512 and #13464.