write two testcases for MWEditorEnergyAD.