Do better pattern match to find failed unit test