fix publisher write tests