Add local test for rebuild storage.
Add memset for rebuild storage.