pubSub test fixed