Add test for Attribute