Message selector test in PubSub and Sub