One of the tests was creating TestComponent instance _and_ using global state making this test not predictable. Fixing the test by making sure that TestComponent is instantiated only once. PR Close #25632
PR Close #21053