adding tests for updateConfig