update tests
fix backwards bug in bernoulli-dist