Added network.refresh method and tests.
Added updateNetwork method and tests.