add test code for lll_d and helpers