Removed testing references to GetLocalClients.
Moved factory logic out of tests.
Made client exposed to other packages.