Added the ITopic test

Fixes #335
I'd introduce a new method - getRandomTopic() - to encapsulate the logic and make the main Worker flow more readable.