add test_save and test_save_external