tests for save and load functions