       describe("#compareRelations") {
         beforeEach {
           data["relations"] = ["Items" : [data, data, data]]
-          item = item(data)
+          item = Item(data)
         }
 
         it("compare relations properly") {
-          var Item2 = item(data)
+          var Item2 = Item(data)
           expect(compareRelations(item, Item2)).to(beTrue())
 
           Item2.relations["Items"]![2].title = "new"
           expect(compareRelations(item, Item2)).to(beFalse())
 
           data["relations"] = ["Items" : [data, data]]
-          Item2 = item(data)
+          Item2 = Item(data)
           expect(compareRelations(item, Item2)).to(beFalse())
         }
       }

      describe("#metaInstance") {
        it("resolves meta data created from object") {
          var data = ["id": 11, "name": "Name"]
          item = item(meta: Meta(data))
          let result: Meta = item.metaInstance()

          expect(result.id).to(equal(data["id"]))


        it("compares a collection of view models that are not equal") {
          let left = [
            Item(title: "foo", size: CGSize(width: 40, height: 40)),
            Item(title: "foo", size: CGSize(width: 60, height: 40))
          ]
          let right = [
            Item(title: "foo", size: CGSize(width: 40, height: 40)),
            Item(title: "foo", size: CGSize(width: 40, height: 40))
          ]

          expect(left === right).to(beFalse())
