further refactoring to get closed methods out separate and have their own tests, i.e. emission and conditionalTrigramProbability