Certain types of imaging tests may show invasive tapeworm infection. These include:  CT scan. MRI. X-ray. Ultrasound.