Adding some unit tests for publisher+subscribers.
Merge pull request #4 from jtmzheng/adding-unit-tests

Adding some unit tests for publisher+subscribers.