Make tests easier to debug by avoiding that an exception goes unotified because commit was not invoked.