test(storage): add regression tests.

Could we create a temp file for such tests? Then we don't need to care about cleanup. https://www.npmjs.org/package/tmp