test for publish