Fix bug in test case
Create consumers last
Improving toString debugging
Add more trace logging
Refactor SSL handling