DOCTESTS: fix errors and simplify tutorial