       expect(result.statusCode).toBe 200
       expect(result.body.taxCategory).not.toBeDefined()
       done()
-    .fail (msg) -> done(msg)
+    .fail (error) -> done(_.prettify(error))
 
   it 'should add, change and remove image', (done) ->
     @newProduct.masterVariant.images = [


    # change
      tax =
        name: "myTax2-#{@unique}"
        rates: []
      @client.taxCategories.save(tax)
    .then (result) =>

      expect(result.body.masterData.staged.name.en).toBe 'Hello'
      expect(result.body.masterData.staged.name.de).toBe 'Hallo'
      done()
    .fail (error) -> done(_.prettify(error))

  it 'should add, update and delete tax category', (done) ->
    tax =
      name: _.uniqueId 'myTax'
      rates: []

    # addition
