Test with pagination