Callback function does not work

In reply to UVM_LOVE:

A compile or elaborate error happens only if there are syntax errors. It looks like your test has not been constructed because it is not a component.
I do not see how you are starting your test.