test publish message