fix CPI test and enable debug log for it