Rather than trying to clear things out in UI Test mode, just create a different UserDefaults instance for it, and disable persistence on it. That's simpler, and you don't need to worry about not restoring the prefs if you kill the process instead of requesting an orderly shutdown.
Rather than trying to clear things out in UI Test mode, just create a different UserDefaults instance for it, and disable persistence on it. That's simpler, and you don't need to worry about not restoring the prefs if you kill the process instead of requesting an orderly shutdown.
fixes #340