add tests for publish command