added unit test for  config