added unit tests for the publisher model