Add test to verify that clearing the local IndexedDB and pulling from the server restores the complete state correctly.