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.
Merge branch 'feature/7751_protect_test_constructors' into develop