Add doctests to Transform docstrings