ConfigTest updated, workaround to use  inside closure