Config: Add unittest for config validation.