A method for pulmonary testing includes, while a patient inspires through the testing device, injecting a test gas at a selected flowrate toward an open end of the testing device. The method also includes measuring a flow rate of the inspired gas, which comprises the test gas. The method further includes measuring a concentration of a selected test gas component in the inspired gas.