sanitize_quantum_config

+ tree for tests