Fix adapter lookup in tests