         @xmlImport.process data, (result) =>
           expect(result.message.status).toBe true
           expect(result.message.msg).toBe 'Nothing updated'
-          @rest.GET '/products', (error, response, body) =>
+          @rest.GET '/products', (error, response, body) ->
             expect(response.statusCode).toBe 200
             products = JSON.parse(body).results
             expect(products[0].masterData.staged.name.de).toBe 'Short Name'

        actions: [
          action: 'unpublish'
        ]
      rest.POST "/products/#{p.id}", JSON.stringify(unpublish), (error, response, body)=>
        v = p.version
        if response.statusCode == 200
          v = v + 1
        rest.DELETE "/products/#{p.id}?version=#{v}", (error, response, body) =>
          if response.statusCode == 200
            deffered.resolve body
          else

        @xmlImport.process d2, (result) =>
          expect(result.message.status).toBe true
          expect(result.message.msg).toBe 'Product updated'
          @rest.GET '/products', (error, response, body) ->
            expect(response.statusCode).toBe 200
            products = JSON.parse(body).results
            expect(products[0].version).toBe 3
