change way of contigure optionnal and required params for config checker, add tests