Preparation for imaging tests varies depending on the type of test. For example, you may need to fast for several hours before a CT scan or PET scan. For an MRI, you should remove any metal objects as they can interfere with the magnetic field. Your healthcare provider will give you specific instructions based on the imaging test you will undergo.