unit tests for config module