add publisher subscriber test