"test failed" message being printed after simulation

I am working with an existing environment in when a test case is being failed it prints a message “TEST failed”.i want to know which component(class or phase) is responsible for printing this message.

In reply to mada saimanasa:

It should be printed on the same line if the message is coming from a uvm_ report method. Otherwise you will have to grep the source code.