The history and physical exam usually make the healthcare provider suspicious. An arterial blood gas test can measure the amount of acid in the blood and determine if the lungs are responsible for the acid buildup. Further tests may be needed to determine the cause, such as blood and chest x-ray tests.