Working in Integ test from Query