Added tests for "db"