unit test with doctest