Pkg.project() inside a unit test

Is any way to get the current package name while running a unit test? The issue Pkg.project().name gives nothing I’m activating the tests with ]test

The reason why I need it, I want to have a template unit test that might be added to multiple packages and activate a function inside. But for that, I need to have an access to the module inside the package. The code below works anywhere outside a unit test.

using Pkg

pkg = Pkg.project().name
@eval using $(Symbol(pkg))
m = getfield(Main, Symbol(pkg))

If I’m replacing Pkg.project().name in the sample above by an actual name, everything is working fine, but I cannot reuse that file in different projects without changes.