joint_tests function

Compute joint tests of the terms in a model