A six year old can take an accurate pulmonary function test.
You might want to tell the therapist administering the test that he's usually on a nebulizer, because when they give him some albuterol as a part of the test, it's best to give him the format he's most used to.
You also might want to stress to him that it's important that when the therapist gives him directions (blow out as hard as you can for as long as you can) that it's VERY IMPORTANT that he tries his HARDEST and does the maneuver to the best of his ability. This test is very effort-dependent. It's important that he knows to make the best effort possible.
Also, treats are never a bad idea