Test Kernels.purge_packages_from_a_list_of_kernels method