Integration test for QueuePublisher.
QueuePublisher fixes.

* Rename publish method to send_message to avoid overloaded term.
* Extract connection into a method for easier overriding.
Add unit tests.