improve the precision of the simulated data and corrected a couple of tests