Fix failing tests in Network package.