Added query test