 
           clients.receiver.subscribeToQueue sharedQueue, onReceive, (err) ->
             chai.expect(err).to.be.a 'null'
-          clients.sender.sendToQueue sharedQueue, payload, (err) ->
+          clients.sender.sendTo 'outqueue', sharedQueue, payload, (err) ->
             chai.expect(err).to.be.a 'null'
 
 

        ], (err) ->
          chai.expect(err).to.not.exist

          clients.sender.sendToQueue outQueue, payload, (err) ->
            chai.expect(err).to.not.exist
            done()



            clients.receiver.subscribeToQueue sharedQueue, onReceive, (err) ->
              chai.expect(err).to.be.a 'null'
            clients.sender.sendTo 'outqueue', sharedQueue, payload, (err) ->
              chai.expect(err).to.be.a 'null'


