Add query test