     expect(response.username).toEqual "mike"
     expect(response.color).toEqual "blue"
 
+  it "should return a pure object when update", ->
+    data = u.db.findOne "users", username: "mike"
+    response = u.db.update "users", data.uuid, color: "blue"
+    expect(response.username).toEqual "mike"
+    expect(response.color).toEqual "blue"
+    response.username = "cat"
+    response.color = "brown"
+    data = u.db.findOne "users", username: "mike"
+    expect(data.username).toEqual "mike"
+    expect(data.color).toEqual "blue"
+
   it "should remove an item of a collection", ->
     data = u.db.findOne "users", username: "mike"
     response = u.db.remove "users", data.uuid

    response = u.db.save "users", user2
    expect(response.username).toEqual "mike"

  it "should load data from a collection", ->
    response = u.db.load "users"
    expect(response).toEqual true

    expect(response.length).toEqual 1
    expect(response[0].twitter).toEqual "@dreyacosta"

  it "should return a pure array when find all", ->
    response = u.db.find "users", username: "dreyacosta"
    expect(response.length).toEqual 1
    expect(response[0].username).toEqual "dreyacosta"
    response[0].username = "dave"
    response = u.db.find "users", username: "dreyacosta"
    expect(response.length).toEqual 1
    expect(response[0].username).toEqual "dreyacosta"

  it "should return an empty array if no match on find all", ->
    items = u.db.find "users", name: "paul"
    expect(items.length).toEqual 0
