Backport rudimentary content type tests from templer.dexterity.