fix cdr testcases