Add doctest for remote