Add new PreferencesFactory for unit tests
Move FakeMIDI into qualm.testing