moved hierarchy of attributes and added another test