Add coverage for publish_activity