Fixes #11 Refactored pubsub client to clean resources only after connection object is closed
Isolate tests from each other