unittest and doctest examples