Fix tests broken by network_str canonicalization