Only run query test when there's separate libresolv