fixed unit test for store and load