Add publish_test testcase