Adjusting testing case for debug mode