Skip other query tests if no items are returned

Updated the test scripts which query network services so that
they skip their tests in the event of network problems.