Add tests for pagination on page load