Fixed access to not existing IDBDatabase prototype
Improved tests