tests for TabularCPD