Test cases for dbs