added test for marginal distribution in simulation