Before you have a heart bypass or another type of heart surgery, your doctor may prescribe some tests. The studies are being performed in order to make the surgery safer. A breathing test and a carotid ultrasonography examination are two typical tests.