Corrected testcases for 'trainingByModel' and improved plots.