unit test for pagination and adding page links