[test] testcase rewrite, debug improved