update test case and fix debug print