Minor fix in debug register test code.