             expect(b.taxCategory.id).toBe taxCategory2.id
 
     # deletion
+            @oldProduct = getProductFromStaged b
             @newProduct.taxCategory = null
-            @oldProduct.version = b.version
 
             data = @sync.buildActions @newProduct, @oldProduct
             data.update (e, r, b) ->

      expect(true).toBe false
      done()


describe "Integration test between projects", ->


    @sphereClient.productTypes.save(pt).then (productType) =>
      @newProduct.productType.id = productType.id
      @sphereClient.products.save(@newProduct).then (product) =>
        @oldProduct = getProductFromStaged product
        @newProduct.id = product.id
        done()

