replaced attributefactory with attributemanagerfactory
update factory test