added tests for auto pagination