         let cases = TestCase.defaultCases
         cases.forEach { tc in
             let realm = realmWith(identifier: "t2_\(tc.name)", keyType: tc.keyType)
-            let company = insertObject(values: ["identifier": tc.values["identifier"]!, "name": "company1", "sortIndex": 1], realm: realm, objectType: tc.companyType)
+            let company = insertObject(values: ["identifier": tc.companyIdentifier, "name": "company1", "sortIndex": 1], realm: realm, objectType: tc.companyType)
             let adapter = realmAdapter(targetConfiguration: realm.configuration, persistenceConfiguration: persistenceConfigurationWith(identifier: "p2_\(tc.name)"))
             
             let exp = expectation(description: "synced")

    func testSaveChangesInRecord_existingObject_updatesObject() {
        let cases = TestCase.defaultCases
        cases.forEach { tc in
            let companyId = tc.values["c_id"]!
            let realm = realmWith(identifier: "t6_\(tc.name)", keyType: tc.keyType)
            let company = insertObject(values: ["identifier": companyId, "name": "company1", "sortIndex": 1], realm: realm, objectType: tc.companyType)
            let adapter = realmAdapter(targetConfiguration: realm.configuration, persistenceConfiguration: persistenceConfigurationWith(identifier: "p6_\(tc.name)"))

    func testSaveChangesInRecord_missingToManyRelationshipProperty_doesNothing() {
        let cases = TestCase.defaultCases
        cases.forEach { tc in
            let companyId = tc.companyIdentifier
            let realm = realmWith(identifier: "t10_\(tc.name)", keyType: tc.keyType)
            let company = insertObject(values: ["identifier": companyId, "name": "company1", "sortIndex": 1], realm: realm, objectType: tc.companyType)
            insertObject(values: ["identifier": tc.employeeIdentifier, "name": "employee", "company": company], realm: realm, objectType: tc.employeeType)
            let adapter = realmAdapter(targetConfiguration: realm.configuration, persistenceConfiguration: persistenceConfigurationWith(identifier: "p10_\(tc.name)"))
            
            let exp = expectation(description: "synced")
