An ECG can show if the heart is beating too fast, too slow or not at all . An ECG is the main test for diagnosing atrial fibrillation. Blood tests. These help a doctor rule out thyroid problems or detect other substances in the blood that may lead to A-fib .