Apply limit correctly
Update test for the basic collector plugin
Add tests for collector's reduce with limit and offset