     ]
 
     delta = compareDiff @utils, @existingProduct, @newProduct, variants:
-      0: { id: [3, 2], _NEW_ARRAY_INDEX: [ 0 ], _EXISTING_ARRAY_INDEX: [1, 0, 0] }
-      1: { id: [2, 3], _NEW_ARRAY_INDEX: [ 1 ], _EXISTING_ARRAY_INDEX: [0, 0, 0] }
+      0: { id: [3, 2], _NEW_ARRAY_INDEX: [0], _EXISTING_ARRAY_INDEX: [1, 0, 0] }
+      1: { id: [2, 3], _NEW_ARRAY_INDEX: [1], _EXISTING_ARRAY_INDEX: [0, 0, 0] }
       _t: 'a'
       _1 : ['', 0, 3]
 
-    compareVariantActions @utils, delta, @existingProduct, @newProduct,  [ ]
+    compareVariantActions @utils, delta, @existingProduct, @newProduct,  []
 
-    compareAttributeActions @utils, delta, @existingProduct, @newProduct, [ ]+    compareAttributeActions @utils, delta, @existingProduct, @newProduct, []
    @utils = new ProductUtils
    @existingProduct =
      id: '123'
      variants: [ ]

    @newProduct =
      id: '123'
      variants: [ ]

  compareDiff = (utils, existingProduct, newProduct, expectedDelta) ->
    delta = utils.diff existingProduct, newProduct

    ]

    delta = compareDiff @utils, @existingProduct, @newProduct, variants:
      0: [{ sku :'v2', attributes: [{ name: 'attrib', value: 'val' }], _MATCH_CRITERIA : 'v2', _NEW_ARRAY_INDEX: 0 }]
      _t: 'a'

    compareVariantActions @utils, delta, @existingProduct, @newProduct, [
      { action: 'addVariant', sku: 'v2', attributes: [{ name: 'attrib', value: 'val' }] }
    ]

    compareAttributeActions @utils, delta, @existingProduct, @newProduct, []
