adding doctest to misc scripts