fix cap debug test