fixing test failure in fd and rd