 
     # get a tax category required for setting up shippingInfo (simply returning first found)
     @sync._client.taxCategories.save(taxCategoryMock())
-    .then (taxCategory) =>
-      @taxCategory = taxCategory
+    .then (result) =>
+      @taxCategory = result.body
       @sync._client.zones.save(zoneMock())
-    .then (zone) =>
-      @zone = zone
+    .then (result) =>
+      @zone = result.body
       @sync._client.shippingMethods.save(shippingMethodMock(@zone, @taxCategory))
-    .then (shippingMethod) =>
-      @shippingMethod = shippingMethod
+    .then (result) =>
+      @shippingMethod = result.body
       @sync._client.productTypes.save(productTypeMock())
-    .then (productType) =>
-      @productType = productType
-      @sync._client.products.save(productMock(productType))
-    .then (product) =>
-      @product = product
-      @sync._client.orders.import(orderMock(@shippingMethod, product, @taxCategory))
-    .then (order) =>
-      @order = order
-      done()
-    .fail (error) -> done(error)
+    .then (result) =>
+      @productType = result.body
+      @sync._client.products.save(productMock(@productType))
+    .then (result) =>
+      @product = result.body
+      @sync._client.orders.import(orderMock(@shippingMethod, @product, @taxCategory))
+    .then (result) =>
+      @order = result.body
+      done()
+    .fail (error) ->
+      console.log error
+      done(error)
 
   afterEach (done) ->
 
     # TODO: delete order (not supported by API yet)
     @sync._client.products.byId(@product.id).delete(@product.version)
-    .then (product) =>
+    .then (result) =>
       @sync._client.productTypes.byId(@productType.id).delete(@productType.version)
-    .then (productType) -> done()
+    .then (result) -> done()
     .fail (error) -> done(error)
     .fin ->
       @product = null

      }]]

    @sync.buildActions(orderNew, @order).update()
    .then (result) ->
      expect(result.statusCode).toBe 200
      orderUpdated = result.body



      # sync first parcel
      @sync.buildActions(orderNew2, orderUpdated).update()
    .then (result) =>
      expect(result.statusCode).toBe 200
      orderUpdated2 = result.body

