test_patch_with_composite_relations updated