publish: added unit tests for in-reply-to sanity checks

a previous commit added in sanity checks to make sure that we are not
publishing a reply without anything to be in-reply-to; the same goes for
likes, rsvps, and reposts. these new unit tests confirm the correct
error messages are given.