add publish subscribe test