add bernoulli and binomial, update tests