Tests for TabularCPD