changed generation of pkgIndex file for test target