Add tests for m.set_parameters_free/not_free