Tested and fixed AttributeSubjectTrait