Add tests for Bernoulli's EachEdge().

Also fix a bug with the bookkeeping, needed to keep a bool to actually
track which edges passed the trial in the stable graph.
Full coverage of Bernoulli distributions.