core: implement dotmm incl. tests