unit test setConfig