add trace code for failing testcase on ci which works locally