fixed small error in get_mu_meanfield, updated tests