Addresses test failures + adds tests

This commit adds tests based on R for the probability distributions and addresses the test failures from the last build.