The contextAttributeList element of the contextElement is optional
Improve query context tests