     delta = @utils.diff(@order, orderChanged)
     update = @utils.actionsMapDeliveries(delta, orderChanged)
 
-    expectedUpdate = JSON.parse(JSON.stringify(parcel))
+    expectedUpdate = _.deepClone parcel
     expectedUpdate.action = 'addParcelToDelivery'
     expectedUpdate.deliveryId = orderChanged.shippingInfo.deliveries[0].id
 

    update = @utils.actionsMapDeliveries(delta, orderChanged)

    action = JSON.parse(JSON.stringify(orderChanged.shippingInfo.deliveries[0]))
    action["action"] = "addDelivery"

    expect(update).toEqual [action]

  it "should return required action for syncing parcels (deliveries)", ->

    orderChanged = _.deepClone ORDER


    update = @utils.actionsMapReturnInfo(delta, orderChanged)

    addAction = _.deepClone orderChanged.returnInfo[1]
    addAction.action = 'addReturnInfo'

    expectedUpdate =
      [
