     it "registers a provider with a blacklist", ->
       testProvider =
         requestHandler: (options) ->
-          [new Suggestion(this,
+          [{
             word: "ohai",
             prefix: "ohai",
             label: "<span style=\"color: red\">ohai</span>",
             renderLabelAsHtml: true,
             className: 'ohai'
-          )]
+          }]
         selector: '.source.js'
         blacklist: '.source.js .comment'
         dispose: ->

        providerManager = new ProviderManager()
        testProvider1 =
          requestHandler: (options) ->
            [new Suggestion(this,
              word: "ohai2",
              prefix: "ohai2",
              label: "<span style=\"color: red\">ohai2</span>",
              renderLabelAsHtml: true,
              className: 'ohai2'
            )]
          selector: '.source.js'
          dispose: ->
            # No-op

        testProvider2 =
          requestHandler: (options) ->
            [new Suggestion(this,
              word: "ohai2",
              prefix: "ohai2",
              label: "<span style=\"color: red\">ohai2</span>",
              renderLabelAsHtml: true,
              className: 'ohai2'
            )]
          selector: '.source.js .variable.js'
          blacklist: '.source.js .variable.js .comment2'
          providerblacklist:

      providerManager = new ProviderManager()
      testProvider =
        requestHandler: (options) ->
          [{
            word: "ohai",
            prefix: "ohai",
            label: "<span style=\"color: red\">ohai</span>",
            renderLabelAsHtml: true,
            className: 'ohai'
          }]
        selector: '.source.js'
        dispose: ->
          # No-op
