IndexedDb missing tests

- Minor library fixes
- Missing IndexedDb unit tests (need to improve)
- Cleaning up