Removed addEventListener
Fixed error log when tests fail
Fixed problems with IndexedDBShim