This commit puts a mechanism in place to prevent a failure for a low amount from being overwritten very soon after by a higher amount failure.
Preparation for unit testing just the state logic.