remove references to session, add tests for topic model