Issue #2814035 by klausi, dawehner: Make $modules property protected on BrowserTestBase and KernelTestBase