Improve testability and add test on the ChameleonConfiguration class

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>