Add debugging output to track test failure on TC