Add tests for autopagination