doctest for accounts