more doctest fixes, tests for coverage