cap testing debug