I've had a seizure test before, it was to see if I had partial complex seizures or silent seizure where it is not psycho-motor like grand mal-seizures. Sometimes mental illness can originate from that, bipolar as well I've seen medical papers concerning how it might be seizure related in some. Yet I am not a medical professional, you should seek medical attention.
There is also the issue that sensory based problems, if not understood correctly can attribute to mental illness further, the lack of the understanding of self in ones condition.