fixed minor bug with getTestedDistribution