Added unit test for queue and topic.