Added an AttributeQuery test