Added tests for pagination. All tests pass