       data.collection(collectionName).onInsert (request, complete) ->
         complete("This is a bad request").badRequest().next()
 
-      data.process task, {}, (err, result) =>
+      data.process task, {}, (err, result) ->
         should.not.exist err
         result.response.statusCode.should.eql 400
         result.response.body = JSON.parse result.response.body

      data.collection(collectionName).onInsert (request, complete) ->
        complete("There was some error in the app!").runtimeError().next()

      data.process task, {}, (err, result) =>
        should.not.exist err
        result.response.statusCode.should.eql 550
        result.response.body = JSON.parse result.response.body

      data.collection(collectionName).onInsert (request, complete) ->
        complete("You are not authorized!").unauthorized().next()

      data.process task, {}, (err, result) ->
        should.not.exist err
        result.response.statusCode.should.eql 401
        result.response.body = JSON.parse result.response.body
