added test for save and add