add joint getter and test