move import into doctest setup
fixes for the Text transform
Add support for Fold operation