added @Preferences test case