Add JavaDoc for new @PreferenceXXX annotations
Add tests for @PreferenceXXX annotations