* Fix packages deletion in check_config script * The config key for packages is not present if core config validation failed. We need to do a safe dict deletion using dict.pop. * Add check_config test for bad core config