Replace the settings.TESTING hack with a hack to force the Locations
to be initialized in the setup for relevant unit tests.