test saveFile