fixed a few bugs in the new query test