Rotor dynamic testing and control with active magnetic bearings