Pulmonary function test procedure