Add test for ensuring "Major" view caching works for json and html

This confirms that the JSON rendering is not included in the html
rendering (after json cached). It also ensures that the
PostRunReplacements are run, even for objects that have been cached (to
ensure the pagetitle, etc are set)