more thorough doctests