add doctest testsuite