add assertEqual in plot MD test, re #8912