Update doctest to match implementation