Pulmonary function testing and cardiopulmonary stress testing