[ticket/11497] Fix pagination tests

PHPBB3-11497