math: inverse(dq); updated tests