Replace pager_page() instead of page() for test suite

Since gh-7009, pager_page is now the function that may actually launch
external pagers. By replacing page(), we were hiding some bugs, as in
gh-7166
Merge pull request #7168 from takluyver/test-substitute-pager-page

Replace pager_page() instead of page() for test suite