state save/load test.