Improves protocol import tests to avoid DNS lookup.