     @sync.buildActions(orderNew, @order).update()
     .then (result) =>
       orderUpdated = result.body
-      orderNew2 = _.deepClone orderUpdated
-
-      orderNew2.returnInfo[0].items[0].shipmentState = 'BackInStock'
-      orderNew2.returnInfo[0].items[0].paymentState = 'Refunded'
+      @orderNew2 = _.deepClone orderUpdated
+
+      @orderNew2.returnInfo[0].items[0].shipmentState = 'BackInStock'
+      @orderNew2.returnInfo[0].items[0].paymentState = 'Refunded'
 
       # update returnInfo status
-      @sync.buildActions(orderNew2, orderUpdated).update()
-    .then (result) ->
+      @sync.buildActions(@orderNew2, orderUpdated).update()
+    .then (result) =>
       expect(result.statusCode).toBe 200
       orderUpdated2 = result.body
 
       expect(orderUpdated2).toBeDefined()
-      expect(orderUpdated2.returnInfo[0].items[0].shipmentState).toEqual orderNew2.returnInfo[0].items[0].shipmentState
-      expect(orderUpdated2.returnInfo[0].items[0].paymentState).toEqual orderNew2.returnInfo[0].items[0].paymentState
+      expect(orderUpdated2.returnInfo[0].items[0].shipmentState).toEqual @orderNew2.returnInfo[0].items[0].shipmentState
+      expect(orderUpdated2.returnInfo[0].items[0].paymentState).toEqual @orderNew2.returnInfo[0].items[0].paymentState
       done()
     .fail (error) -> done(error)
 

      }]]

    @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

