Added PreferencesModel JUnit test