enable doctest
make this test pass!