doctest autorun and rate iterator