API and Tests to create Attribute