added tests for @Preferences annotation