Fixes for DbDef tests.