tests: Add an extra assertion about pagination

Coverity issue: #59763