tests for JointProbabilityDistribution Class