midreport: added extra code tests