add a new parameter paginationLimit to control iterations
revised several integration test