work and unit tests for HttpPublisher