Also, your baggage may get swabbed. The purpose of the test is to check for chemicals that might be used as explosives. The test can't check for all the chemicals that might be used by terrorists, so it looks for two sets of compounds that can be used to make many types of bombs: nitrates and glycerin.