A cognitive test is an assessment of a defendant's ability to know right from wrong. This is a test used in evaluating whether a defendant may rely on the insanity defense.