refactored CollapsedLDACorpus and added test.