fixed the Testing Mode Calculations