Consolidated exchange name lookups in tests.