Converted db_tests.js