Diagnostic tests usually include a lumbar puncture (spinal tap) to collect and analyze cerebrospinal fluid from the spinal canal. Imaging tests like CT or MRI scans may also be used to look for signs of infection or inflammation in the brain.