refactor the initialization of the settings in the tests