Possibly fixed simulate_experiment bug, added more testing.

Not sure if the bug is fixed or not, so I added more testing.
That said, we should look at stats and make sure it all works.