Add topic event and tests for topic and rpl_topic

Fixes #9