Added test for factor graph conversion of huang darwiche graph.