tested filtering of publish and subscribe