Making sure callback is made only if function
Fixing test to not fail outside IndexedDb

- Fixed issue with failing tests in browsers with no IndexedDb support
- Adding more tests
Adding missing IndexedDb test
Cleaning up

- Making Chrome and Firefox default
- Adding `closure` task to that could be done separately