Added tests for publish/unpublish cli commands [ci skip]