add tests for pagination