package-id: Add a test
package-id: Add a test

PR-URL: //github.com/npm/npm/pull/9890
Fixes: #9766

rsp/npm,cchamberlain/npm,DaveEmmerson/npm,kimshinelove/naver-npm,princeofdarkness76/npm,kemitchell/npm,xalopp/npm,TimeToogo/npm,misterbyrne/npm,rsp/npm,Volune/npm,chadnickbok/npm,Volune/npm,TimeToogo/npm,ekmartin/npm,misterbyrne/npm,evanlucas/npm,midniteio/npm,kimshinelove/naver-npm,yibn2008/npm,DIREKTSPEED-LTD/npm,haggholm/npm,cchamberlain/npm-msys2,yodeyer/npm,haggholm/npm,thomblake/npm,midniteio/npm,lxe/npm,thomblake/npm,evocateur/npm,DIREKTSPEED-LTD/npm,evocateur/npm,chadnickbok/npm,kimshinelove/naver-npm,princeofdarkness76/npm,cchamberlain/npm,DIREKTSPEED-LTD/npm,haggholm/npm,ekmartin/npm,yodeyer/npm,segrey/npm,evanlucas/npm,xalopp/npm,princeofdarkness76/npm,evanlucas/npm,cchamberlain/npm,Volune/npm,evocateur/npm,DaveEmmerson/npm,segrey/npm,DaveEmmerson/npm,kemitchell/npm,ekmartin/npm,rsp/npm,cchamberlain/npm-msys2,lxe/npm,misterbyrne/npm,thomblake/npm,cchamberlain/npm-msys2,yibn2008/npm,segrey/npm,xalopp/npm,yodeyer/npm,yibn2008/npm,TimeToogo/npm,kemitchell/npm,chadnickbok/npm,lxe/npm,midniteio/npm