Lookup.getDefault().lookupResult(ModuleInfo.class) should not normally change during deployTestModule. Otherwise you get events for removal then for readdition of ModuleInfo for the module (and any downstream modules also reloaded), which is inefficient and could cause buggy listener activity e.g. in settings.
Yeah. I don't think we need a fix. Does not affect production and the risk of problems is not high.