fix testcases of cdr module