due to dotnet/corefx#24104 using localhost as the hostname in test URL results in significant slowdown of HttpClient. We should switch the tests to use 127.0.0.1 for the hostname instead to decrease testing time of web cmdlets.
We should also look at other tests that are using localhost and consider switching the ones we can to 127.0.0.1.