fix doctest execution
Merge pull request #1091 from crate/m/fix_doctests

fix doctest execution