ISPN-2957 Fix broken query test

https://issues.jboss.org/browse/ISPN-2957