Add doctest to tutorial