Modified TestTopicMain in tests.py