Add a Mode.clearAll to enable unit test cleanup