 
       describe("#mapping") {
         beforeEach {
-          item = item(data)
+          item = Item(data)
         }
 
         it("it creates an instance") {


      describe("#update:kind") {
        beforeEach {
          item = item(data)
        }

        it("updates kind") {

      describe("#compareRelations") {
        beforeEach {
          data["relations"] = ["Items" : [data, data, data]]
          item = Item(data)
        }

        it("compare relations properly") {
          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)
          expect(compareRelations(item, Item2)).to(beFalse())
        }
      }
