Add tests for attribute.