Added a test for saving to files