Looks we're currently calling that function 3 times during a test installation, _install_profile_modules_finished(), install_finished() and resetAll(). This results in 3 router rebuilds for every test method, among other things.
Wondering if we can remove some of them and replace with more targeted cache clears. This function makes up ~35% of the whole test time on a test with 3 test methods.