test for saving and loading network