fix a bug in cf-iter2 where the n1 and d1 was missed
add test