saving the state test