Added tests for topic dao