Added tests for conditional_to_joint.
Added tests for conditional_to_joint.