Added basic tests for publisher/subscriber