added network exceptions, added 3 tests of exceptions