refactored AttributeService* tests