test fix for save function