Doctests moved to unit tests