       data.collection(collectionName).onInsert (request, complete) ->
         complete("You are not authorized!").unauthorized().next()
 
-      data.process task, {}, (err, result) =>
+      data.process task, {}, (err, result) ->
         should.not.exist err
         result.response.statusCode.should.eql 401
         result.response.body = JSON.parse result.response.body

      data.collection(collectionName).onInsert (request, complete) ->
        complete({"foo":"bar"}).created().next()

      data.process task, {}, (err, result) =>
        should.not.exist err
        result.response.statusCode.should.eql 201
        result.response.body.should.eql JSON.stringify {"foo":"bar"}

      data.collection(collectionName).onInsert (request, complete) ->
        complete("Forbidden!").forbidden().next()

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