Fix locale retrieval leak.
Add scheme for running with the test network.