Issue #1611430 by Berdir, brad.bulger, Stevel, sun, catch: Verbose debug output in unit tests relies on the database