added test for save and load