some minor bugfixes
dirichlet distribution tests