Add network unittests