add test for NewConfigFromString