Rework unit tests and simplify first checkin
Unsubscribe not working with publish refcount
Manage stream termination properly
Merge pull request #7 from leonjones1974/feature/unit_test_framework

Feature/unit test framework