adding tests for pagination