Rewrite RegistryTest for recursive merge