Tests that may be used to help diagnose a stroke include a CT scan or MRI, and an electroencephalogram.