Fix incorrect version string in package test by reusing global string.