Improve and simplify unittests for uniform and uniformDistribution