bernoulli expectation spec added for fun