unit testing for publishing server