Added network test code