Added Tests for pub/sub dispatch.