Updated hinge joint class

- Added leg tests