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


        testProvider3 =
          requestHandler: (options) ->
            [new Suggestion(this,
              word: "ohai3",
              prefix: "ohai3",
              label: "<span style=\"color: red\">ohai3</span>",
              renderLabelAsHtml: true,
              className: 'ohai3'
            )]
          selector: '*'
          dispose: ->
            # No-op

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

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