Adding tests result set length to query tests