added saveFile integration tests