Pulmonary function testing and thoracic imaging