             badConfigurations = ["/user/data@enterprise.sf/status"]
 
             iqReceived = false
-            eventName = "got-message-picard@enterprise.sf/abc"
 
-            server.on eventName, (msg) ->
+            server.on "got-message-picard@enterprise.sf/abc", (msg) ->
                 iqReceived.should.be.false
                 msg.attrs.should.have.property("type", "headline")
 

    server = new TestServer()

    it "must replay PubSub events to the sender", (done) ->
        mam_begin = new Date().toISOString() #TODO: timezone?

        async.series [(cb) ->


            server.doTest iq, "got-iq-mam-B-1", cb, (iq) ->
                iqReceived = true
                server.removeAllListeners "got-message-picard@enterprise.sf/abc"
                server.once "got-message-picard@enterprise.sf/abc", (msg) ->
                    throw new Error("message after result iq")
                iq.attrs.should.have.property "type", "result"

