Not registered with the factory

In reply to DK2894erappa:

The package is the one containing the class declaration you want to use with +UVM_TESTNAME=name. That package has to be imported by some module/inteface used in your testbench, usually the module containing the call to run_test();. It can also be indirectly imported by another package, but that package would also need to be imported by some module/interface used in the testbench.