add unit test for save_state_path