Generalize test_dd to test_models_agree