Fix missing test name when reporting some errors on the console.