added missing unittests + a correction caught by said tests
Merge pull request #1295 from twobraids/rabbitmq-missingtests

added missing unittests + a correction caught by said tests