Problem/Motivation
Make $modules protected on BrowserTestBase and KernelTestBase.
Use something like
find . -path './.git' -prune -o -not \( -name '*.js' \) -type f -path '*/tests/*' -exec sed -i -e 's/public static $modules/protected static $modules/g' {} \;