Improve tests around the component publish service