Move RepeatRule to the io test package

Also not a todo comment on an important area of the page cache that needs more testing.
Also extract some threading utilities out of the PageCacheTest into a utility class.