During a court hearing, a schizophrenic defendant says, "I know I should not have killed the person. I don't know what happened to me at that moment. I just could not resist myself." What is the most appropriate legal test of sanity related to the act?
A. McNaughton's rules
B. Irresistible impulse
C. Guilty but mentally ill
D. Competence to proceed