adding unit test for getConfig()