added tests for pagination