Add publish task test