PLSA unit tests