Locator changes for ui/repository tests.
Merge pull request #1747 from kbidarkar/fix-discoverrepos

Locator changes for ui/repository tests.