Tests modified for IndexedDB
modify test cases
Merge pull request #1250 from zhaozihao/zhaozihao/tests/IndexedDB

Tests modified for IndexedDB