Moved contenttypes tests to allow them to run correctly in the presence of migrations. refs #22170. Backport of eb8600a6 from master