Added test for preference and description attributes.
Remove deprecation warning.