memory leaks fixed in LDA unittest