Mock network based tests so they are fast, deterministic, and can run
with no network access.