There is no single test for TMJ. Your doctor will take your medical and dental history and examine your head, face, neck, and jaw. They may order imaging tests, including X-ray, MRI, or CT. Your doctor will use this information to rule out other causes of facial pain. Those might include sinus or ear infections, headaches, and nerve-related facial pain (facial neuralgias).