Adding pkgTest functionality