Adding query test