fixing max num pages for pagination and updating test