subscriber/publisher pattern test