Fixes the query tests fo' realz.