Fix test=true when overriding configuration value

Closes #10877.