diff --git a/tests/generator/test_config.py b/tests/generator/test_config.py
index b22e4e5681b58febdf1a983a66675f321f006625..4485dc22e639b185b8b0756ae6d69f92af5e45e8 100644
--- a/tests/generator/test_config.py
+++ b/tests/generator/test_config.py
@@ -1,11 +1,11 @@
-from os import path
+import pytest
 
-from pystencilssfg import SourceFileGenerator
 from pystencilssfg.config import (
     SfgConfig,
     OutputMode,
     GLOBAL_NAMESPACE,
     CommandLineParameters,
+    SfgConfigException
 )
 
 
@@ -54,6 +54,25 @@ def test_override():
     assert cfg1.clang_format.binary == "bogus"
 
 
+def test_sanitation():
+    cfg = SfgConfig()
+
+    cfg.extensions.header = ".hxx"
+    assert cfg.extensions.header == "hxx"
+
+    cfg.extensions.header = ".cxx"
+    assert cfg.extensions.header == "cxx"
+
+    cfg.clang_format.force = True
+    with pytest.raises(SfgConfigException):
+        cfg.clang_format.skip = True
+
+    cfg.clang_format.force = False
+    cfg.clang_format.skip = True
+    with pytest.raises(SfgConfigException):
+        cfg.clang_format.force = True
+
+
 def test_from_commandline(sample_config_module):
     from argparse import ArgumentParser