tests: Print failure exeception if logger output goes to file