Update joint unittest

Update joint unittest.
Use min-angle or max-angle instead of magic number.
Execute test if no display.