fix recipe creation when import_tests already exist and pkginfo 'packages' also exist.