Remove vhosts, exchanges and queues only if they exist
Add tests for the publisher