hooking old doctests into unittests, thanks Niphlod