Fix the torque calculation. Cleanup the calc_torque test.