wrote unit tests for Config