fix test query to include rows