move nupkg test code into utils