         it 'should stop the filter chain if an exception occurs in the after method of a filter', (done) ->
             aFilter =
                 after: ->
-                    expect.fail()
+                    expect().fail()
             bFilter =
                 after: ->
                     throw name: 'MyError'

                after: ->
                    done()
            runner.run instance, 10000, ->
                expect.fail()

        it 'should call the get() method if the instance has the method property defined as "get"', (done) ->
            instance =

            bFilter =
                responseHeaders: {}
                before: ->
                    expect().fail()
            controller =
                method: 'get'
                filters: [aFilter, bFilter]
                get: ->
                    expect().fail()

            runner.run controller, 10000, (error, response) ->
                expect(error).not.to.be.ok()
