tests for indexedb and more fixes