add device query tests