add doctest like tests