Move doctest to functional.