tests: add storage.js unit tests