Test PreferenceDB