fix publish-subscriber example
test for multiple definitions