Update unit tests to not use external resources.

WARNING: `Unit` class no longer has the method `_hasNetwork()` it has been moved to `Integration`. A better alternative, for unit tests, is to stub function calls in `Mocker::overwriteFunction()` or full classes in `Mocker`.