After resolving this issue we should be able to get a configured client using this function that can be used with emulator.