test should free the param struct