The treatment of expenses paid with distributions from Sec. 529 plans and Coverdell ESAs in the support test is uncertain because of the dual nature of these college savings vehicles and and a lack of IRS guidance.
The most common practice is to treat a 529 or ESA distribution as parental support (or, at least support, not provided by the student*), as the parent is the owner of the plan. Making distributions to the owner rather than the beneficiary, or the school, would reinforce this position.
*There are two types of dependents, "Qualifying Children"(QC) and standard ("Qualifying Relative" in IRS parlance even though they don't have to actually be related). There is no income limit for a QC but there is an age limit, student status, a relationship test and residence test. The support test is different for each type. The support test, for a QC, is only that the child didn't provide more than half his own support. The support test for a Qualifying Relative is that the taxpayer provided more than half the relative's support.