First round of doctest in core