doctest on models