fix device queries, adding CASStyler test case for filtering selectors