Gah that doctest is hideous. It largely overlaps the unit tests done
elsewhere - the only reason it's not been removed yet is that it's the only
place where an end-to-end test is done.
For a quick fix, it would be entirely appropriate to not check the output of
the publisher where it's going wrong. The publisher is tested to death