If the diagnosis is still unclear, testing may include cerebrospinal fluid (CSF) analysis (particularly to rule out meningitis, encephalitis, or subarachnoid hemorrhage), measurement of serum ammonia, and testing to check for heavy metals.