Add test for parameter.set_parameters_free and set_parameters_not_free