Check dynamically whether the topic exists, adapt tests and examples