add unit tests for Config.validate()