added tests for PublishStream