added unit tests for client and producer
Merge pull request #19 from acoburn/unit_tests

added unit tests for client and producer