Adding test for pagination above max batch. fixes #9484"