       filterIndicatorsWithDataStub.restore()
       done(err)
 
-  ).fail((err)->
+  ).catch((err)->
     filterIndicatorsWithDataStub.restore()
     done(err)
   )

      filterIndicatorsWithDataStub.restore()
      done(err)

  ).fail((err)->
    filterIndicatorsWithDataStub.restore()
    done(err)
  )

    Q.fcall(->)
  )

  Promise.join(
    Promise.promisify(theme.save, theme)(),
    Promise.promisify(driverIndicator.save, driverIndicator)()
  ).then(->
    stubReq = {
      query:
