Split GenericRelationsTests.test_generic_relations into several tests; refs #18586.