test for SaveState methods