Added test case for pagination