Query testing finalized