indexed db unit tests + bug fix