fix(ui): additional fixes for preferences_configuration
Description
This fix the internal stored preferences not being in sync with the actual preferences and fix a widget/memory leak (QDialog without parent)
And more importantly, this adds unit tests for this service
How to test it?
Launch the unit test