Fixed db_test for new idempotent re-trigger behaviour