Fix one test
Introduce new $limit parameter to the query builder, which will LIMIT all queries including inner ones - do not use when aggregating or it will sample