     it 'should resolve with the result given a query callback which resolves with a result', ->
       queryResult = {}
       exampleContext = eventric.context 'Example'
-      exampleContext.addQueryHandler 'getSomething', ->
+      exampleContext.addQueryHandlers getSomething: ->
         new Promise (resolve) -> resolve queryResult
       exampleContext.initialize()
       .then ->

    it 'should reject with an error given a query which rejects with an error', ->
      error = new Error
      exampleContext = eventric.context 'Example'
      exampleContext.addQueryHandler 'getSomething', ->
        new Promise (resolve, reject) -> reject error
      exampleContext.initialize()
      .then ->

    it 'should execute the query repeatedly given a query which resolves but not with immediately with a result', ->
      exampleContext = eventric.context 'Example'
      callCount = 0
      exampleContext.addQueryHandlers getSomething: ->
        new Promise (resolve, reject) ->
          callCount++
          if callCount < 5
