Code and test to handle a bad configuration.