Fix test for pagination