Adding PreferenceManagerTest