Re #7551. Add code to prevent test constructors being called too much.
Re #7751. Revert this one - it makes the test fail for some reason.

And just trying to start up the FrameworkManager another way doesn't fix it.
Re #7751. Make sure the FrameworkManager is started for tests.

The LeBailFit test was relying on it being started, but was getting it
by luck before.
Re #7751. Make sure the FrameworkManager is started.

This is required on Ubuntu. I think it relates to the fact that
the tested algorithms use subalgorithms from another package.
Merge remote-tracking branch 'origin/feature/7751_protect_test_constructors'