Move common tests for the joint points in different file