Some refactoring of pagefetch tests.