add test code for topic models