An air quality test is to find out if there is a mold problem in the house. A swab is done if there is a visible substance that could be mold, and is taken if the inspector wants to find out if the substance is in fact mold and what kind it is.