fix tests for indexdb