Tests to determine the cause If it is not clear from neuroimaging or the previous history, tests to determine the cause may include Laboratory tests (eg, complete blood count with differential; measurement of serum glucose, electrolytes, blood urea nitrogen, creatinine, sodium, calcium, magnesium, phosphorus, serum amino acids, and urine organic acids; liver tests) if a metabolic disorder is suspected Genetic testing (epilepsy gene panels are available) Cerebrospinal fluid (CSF) analysis to check for metabolic disorders (See also Approach to the Patient With a Suspected Inherited Disorder of Metabolism.)