Cannot create a component of type 'test2' because it is not registered with the factory

i am getting the following error
UVM_WARNING @ 0: reporter [BDTYP] Cannot create a component of type ‘test2’ because it is not registered with the factor

here is the link for the EDA playground of the code

In reply to yethishwar:

Your test2.sv file was not complied in your project.
Please `include “test2.sv” to your testbench.sv.

For this type of error. You should review the compile log. Make sure all expected class are compiled.

Thank you sir :)