wrote test to load and save the contents into the file