test for doto macro
relates #567
documentation for doto
relates #567