fix tests to work with any host
Merge pull request #6175 from aMoniker/test_uri_fix

fix tests to work with any host