added topic_event_listener primitive and added it to test case