proper MD test, and use assertEqual when possible, re #8912
better input checks, fixed multi-plot, re #8912