The substantial-capacity test states that an individual should have the mental capacity to understand that an act is wrong or conform their behavior to the law.