Simple test code of saving and loading