limit and paginate + tests