doctests -> unitest