added DBTestIterator for tests to auto switch default db