Avoid use of real, resolvable hosts in tests.

such as "fake.net" and "up.com".  Instead use the ".invalid" TLD which is reserved.

Also fix a test to properly use "beforeAll" to prevent it from loading JSON regardless of whether the relevant tests will run.