doctest can be run from commandline