fixed unit test and registry.xdi