Added network test function