Added tests for retract_in_db, which has been made more general,
and more efficient.
Authored by: dwarren 2018-01-22
Parent: [r9194]
Child: [r9196]