             }
             
             context("the model has primaryKey but the dictionary doesn't") {
-                
+                var object: [String: AnyObject]!
+                var totalObjectsBefore: Int!
+                var totalObjectsAfter: Int!
+                beforeEach {
+                    self.cleanLoggers()
+                    totalObjectsBefore = realm.objects(Task).count
+                    object = ["name": "hola"]
+                    realm.write {
+                        realm.createNotified(Task.self, value: object, update: true)
+                    }
+                    totalObjectsAfter = realm.objects(Task).count
+                }
+                it("won't add it to the realm") {
+                    expect(totalObjectsBefore) == totalObjectsAfter
+                }
+                it("won't use a logger") {
+                    expect(RealmNotification.sharedInstance.loggers.count) == 0
+                }
+                it("clean") {
+                    self.cleanLoggers()
+                }
             }
         }
         

            
            
            context("the object already exists on DB") {
                var myTask: Task!
                var fetchedTask: Task!
                beforeEach {
                    self.cleanLoggers()

                self.cleanLoggers()
            }
            
            context("the object already exists on DB") {
                var myTask: [String: AnyObject]!
                var fetchedTask: Task!
                beforeEach {
                    self.cleanLoggers()
                    myTask = ["name": "hola", "id": 1501, "resolved": 1]
                    realm.write {
                        realm.createNotified(Task.self, value: myTask, update: true)
                    }
                    fetchedTask = realm.objectForPrimaryKey(Task.self, key: 1501)

                }
                it("trying to add the same object again, will update it") {
                    expect(fetchedTask.name) == "hola"
                }
                it("clean") {
                    self.cleanLoggers()
                }
            }

            
            context("the Model does not have primaryKey") {
                var object: [String: AnyObject]!
                var totalObjectsBefore: Int!
                var totalObjectsAfter: Int!
                beforeEach {
                    self.cleanLoggers()
                    totalObjectsBefore = realm.objects(Task).count
                    object = ["name": "hola"]
                    realm.write {
                        realm.createNotified(Dummy.self, value: object, update: true)
                    }
                    totalObjectsAfter = realm.objects(Task).count
                }
                it("won't add it to the realm") {
                    expect(totalObjectsBefore) == totalObjectsAfter
                }
                it("won't use a logger") {
                    expect(RealmNotification.sharedInstance.loggers.count) == 0
