Write all test case for PersistentStorage