Attribute methods and tests.