Add tests (doctest, do `workarea test`)