adding test case for pagination