* Migrate old unittest to the new framework for testing.
* Add a regression test for #4746 : This permits to introduce an example
of configuration file with an error.
* Proper import for pytest import of CaptureFixture
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>