add query test