Fix configuration validation when testing