fix test bug 3: friendly error messages in publish command