Junit tests for distrbution