Override the snapshot function for testing.
@visibleForTesting void debugSetPerformSnapshot(Future<DateTime> Function()? fun) { _debugPerformSnapshotFun = fun; }