test for save in file