unit test for config