Updated example and tests

Test collection updated, workaround Issue #620, added async test for db
work