Lab tests can also help your healthcare provider find the cause of your symptoms. A blood sample can be tested to tell how well your lungs are exchanging oxygen and carbon dioxide.