Test Network

Added a more complete tests of the Network module.