adding hosts unit test case
adding hosts unit test
Merge pull request #19217 from jayeshka/hosts_unit_tests

Hosts unit tests