Warning · Test quality
Impact
Both tests would still pass if the writer deleted the previous receipt backup when validation throws after replacement.
Recommended action
Run the real writer, inject a failure in `Assert-ProoflineRecord` after replacement, and verify that the backup contains the original receipt.