DIC : Configuration : tests and improvments

Adding some tests for configurations
Remove code for DRY